<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *客户列表
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$tabs=array(
	array('op'=>'list','title'=>'上课日期-重复列表'),
);
//客户列表
if($_RQ['op']=='list'){
	$list = cache_read('kcdata','jy_yxw');
	cache_delete('kcdata','jy_yxw');
	foreach($list as &$item){
		$item['kejiantitle']=$this->getcolumn('kejian',array('id'=>$item['kejianid'],'storeid'=>$_SESSION['storeid'],'uniacid'=>$_SESSION['uniacid']),'title');
	}
	$return['list']=$list;
	//页面显示设置
	$htmls=array(
		'type'=>'list',
		'tabs'=>$tabs,
		'list'=>array('data'=>'list','tip'=>'[温馨提示]：
		</br>1、下面是【上课日期】重复的
		','del_one'=>false,'delall'=>false,'edit'=>false,'list'=>array(
			array('type'=>'string','title'=>'上课日期','name'=>'day'),
			array('name'=>'kejiantitle','title'=>'课件名称','type'=>'string'),
			array('name'=>'workerid','title'=>'售后技术姓名','type'=>'select2','options'=>'workers'),
		)),
	);
	$return['workers']=$this->getall('worker',array('role'=>10,'storeid'=>$_SESSION['storeid'],'uniacid'=>$_SESSION['uniacid']),array('id','title'),'id');
	$return['htmls']=$htmls;
	exi($return);
}